﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Configuration;
using WebApplicationRating.DB.model;


namespace WebApplicationRating.Views
{
    public partial class JustImage : System.Web.UI.Page
    {

        static string prevPage = String.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                try
                {
                    prevPage = Request.UrlReferrer.ToString();
                }
                catch
                {
                }
            }

            String mgid = Request.QueryString["MGID"];
            int curImageId = Convert.ToInt32(mgid);

            tbMGID.Text = mgid;
            //lblMessageM.Text = " imageid mgid =" + mgid;

            //tbMGIDnow.Text = mgid;
            //lblMessageM.Text = " imageid mgid =" + mgid;

        }



        protected void btnBack_Click(object sender, EventArgs e)
        {

            Response.Redirect(prevPage);

        }

    }
}